<template>
  <van-swipe
    :vertical="vertical"
    :autoplay="autoplay"
    :indicator-color="indicatorColor"
    :show-indicators="show_indicators"
  >
    <slot></slot>
  </van-swipe>
</template>

<script>
export default {
  name: "Swiper",
  props: {
    //轮播时隔
    autoplay: {
      style: String,
      default: "5000",
    },
    //轮播方向
    vertical: {
      style: Boolean,
      default: false,
    },
    //按钮active的颜色
    indicatorColor: {
      style: String,
      default: "#ffd01e",
    },
    //是否显示按钮
    show_indicators: {
      style: Boolean,
      default: false,
    },
  },
  setup() {
    return {};
  },
};
</script>

<style scoped lang="less">
.van-swipe {
  width: 100%;
  height: 100%;
  background-repeat: round;
}
</style>
